package cn.itcast.hotel.utils;

import cn.itcast.hotel.config.ThreadPoolProperties;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.concurrent.*;

//@Component
public class MyThreadPoolUtils {
//    @Autowired
//    private ThreadPoolProperties poolProperties;
//    ThreadPoolExecutor MyThreadPool = new ThreadPoolExecutor(
//            poolProperties.getCorePoolSize(),
//            poolProperties.getMaximumPoolSize(),
//            10,
//            TimeUnit.SECONDS,
//            new ArrayBlockingQueue<>(10),
//            Executors.defaultThreadFactory(),
//            new ThreadPoolExecutor.AbortPolicy()
//    );

}
